/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.aotoso.device.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 设备采集到的数据列表Entity
 * @author youc
 * @version 2016-11-24
 */
public class TestRes extends DataEntity<TestRes> {
	
	private static final long serialVersionUID = 1L;
	private Double sensorAlength;		// 传感器A
	private Double sensorBlength;		// 传感器B
	private String deviceNo;		// 设备编号
	
	public TestRes() {
		super();
	}

	public TestRes(String id){
		super(id);
	}

	public Double getSensorAlength() {
		return sensorAlength;
	}

	public void setSensorAlength(Double sensorAlength) {
		this.sensorAlength = sensorAlength;
	}
	
	public Double getSensorBlength() {
		return sensorBlength;
	}

	public void setSensorBlength(Double sensorBlength) {
		this.sensorBlength = sensorBlength;
	}
	
	@Length(min=0, max=10, message="设备编号长度必须介于 0 和 10 之间")
	public String getDeviceNo() {
		return deviceNo;
	}

	public void setDeviceNo(String deviceNo) {
		this.deviceNo = deviceNo;
	}
	
}